package intelligentcity.mains;

import intelligentcity.cities.WashingtonCityBuilder;
import intelligentcity.gui.Gui;
import intelligentcity.model.traffic.Traffic;

import javax.swing.JFrame;

@SuppressWarnings("serial")
public class GuiWashington extends Gui {

    public GuiWashington() {
        city = new WashingtonCityBuilder().createStartPointsBorders().createNeighbourhood().createStartPoints().build();
        traffic = new Traffic(city, 1);
        traffic.start();
        timer.start();
    }

    public static void main(String[] args) {

        JFrame frame = new JFrame("Washington");
        frame.add(new GuiWashington());
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.setSize(950, 750);
        frame.setLocationRelativeTo(null);
        frame.setVisible(true);
    }
}
